<script setup lang="ts">
import MainCon from '@/components/MainCon.vue'
import zcPageTable from '@/components/zc-components/zcPageTable.vue';
import { ref } from 'vue'
</script>

<template>
  <div>
    <!-- 渐变背景 -->
    <MainCon>
      <template #main>
        <div class="myInf">
          <div class="text">
            <div class="hi">Hi!</div>
            <div class="name">I'm <span class="nameText">WangZC</span></div>
            <div class="intro">A Front-End Developer</div>
          </div>
          <div class="contact">
          </div>
        </div>
      </template>
    </MainCon>
    <MainCon>
      <template #main>
        <zcPageTable>
          <template #searchQuery="{cc}">
            {{ cc }}
          </template>
        </zcPageTable>
      </template>
    </MainCon>

  </div>
</template>

<style lang="scss" scoped>
.myInf {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #000000 40%, rgba(0, 0, 0, 0) 200%);
  position: relative;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;

  .text {
    cursor: default;

    .hi {}

    .name {
      font-size: 60px;

      .nameText {
        font-size: 80px;
        color: #fff;
      }
    }
  }

  .contact {
    display: flex;
    gap: 30px;

    .item {
      border-radius: 50%;
      background-color: #656579;
      height: 30px;
      width: 30px;
      cursor: pointer;

      &:hover {}
    }
  }
}
</style>
